package com.vehicle.service;
import com.vehicle.bean.Violation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.form.ViolationForm;
import com.vehicle.vo.MessageVO;
import com.vehicle.vo.ViolationListVO;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-05-14
 */
@Service
public interface ViolationService extends IService<Violation> {

    //添加罚单：carId,message
    public Boolean addVolation(ViolationForm violationForm);

    //修改罚单: 修改罚单信息：message
    public Boolean updateMessage(Violation violation);

    //修改罚单：对罚单是否已处理进行修改
    public Boolean updateProcessed(Integer vioId);

    //分页查询罚单：page,size
    public ViolationListVO getAllViolation(Integer page,Integer size);

    //模糊查询
    public List<Violation> getLikeViolation(String key);

    public List<Violation> getListByAdmin(Integer id);

    public List<Violation> getListByUserId(Integer userId);

    public MessageVO getMessageByParking(Integer parkingId);

    public Integer getNumber(Integer userId);
    public LocalDateTime getTime(Integer userId);






}
